package com.recive.tarms.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.recive.tarms.mapper.FlightMapper;
import com.recive.tarms.model.Flight;
import com.recive.tarms.service.FlightService;

@Service
public class FlightServiceImpl implements FlightService {

	@Autowired
	private FlightMapper oFlightMapper;

	public int addFlight(Flight oFlight) {
		return oFlightMapper.insert(oFlight);
	}

	public List<Flight> findAllFlight() {
		return oFlightMapper.selectAllFlight();
	}

}
